﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ParamEdit.aspx.cs" Inherits="DataBase_ParamEdit" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>基础数据维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <!--#include file="../Js/KeyControl.js"-->

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">   
			  
      function BtnSubmit()
      {
          var sCode = form1.Code.value;
          var sName = form1.Name.value;
          
          if(sCode == "")
          {
              form1.Code.focus();
              alert("编码不能为空！");
              return;
          }

          if(sName == "")
          {
              form1.Name.focus();
              alert("名称不能为空！");
              return;
          }

          var btnSave=window.document.getElementById("SaveData");
		      if(btnSave!=null)
		         btnSave.click();
      }

			
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 6;">
            <td>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>类别：</strong>
            </td>
            <td>
                &nbsp;<asp:DropDownList ID="ParamType" DataTextField="Name" DataValueField="code"
                    runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>编码：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="Code" runat="server" CssClass="TextBox" MaxLength="10" TabIndex="1"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>名称：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="Name" runat="server" CssClass="TextBox" MaxLength="50" TabIndex="2"></asp:TextBox><font
                    color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>变量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="CValue" runat="server" CssClass="TextBox" MaxLength="10" TabIndex="1"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>状态：</strong>
            </td>
            <td>
                &nbsp;<asp:DropDownList ID="status" runat="server">
                    <asp:ListItem Value="1">有效</asp:ListItem>
                    <asp:ListItem Value="0">无效</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="height: 30; background-color: #F9F9FB">
            <td>
            </td>
            <td>
                <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                    runat="server" value="提交" onserverclick="SaveData_ServerClick" />
                <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
                <input type="button" id="Button2" value="退出" class="button02" onclick="window.close();" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
